// --------------------------------------------------------------------------------------------------------------------
// <copyright file="JsonOrderAttribute.cs" company="Roman '4ux-nbIx' Novitsky">
//   Copyright (c) Roman '4ux-nbIx' Novitsky 2010
// </copyright>
// <summary>
//   Defines the JsonOrderAttribute type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Json
{
    #region Namespace Imports

    using System;

    #endregion


    /// <summary>
    /// Defines Json serialization order.
    /// </summary>
    public class JsonOrderAttribute : Attribute
    {
        #region Constructors and Destructors

        /// <summary>
        /// Initializes a new instance of the <see cref="JsonOrderAttribute"/> class.
        /// </summary>
        /// <param name="order">
        /// The order.
        /// </param>
        public JsonOrderAttribute(int order)
        {
            Order = order;
        }

        #endregion


        #region Properties

        /// <summary>
        /// Gets the order.
        /// </summary>
        /// <value>
        /// The order.
        /// </value>
        public int Order
        {
            get;
            private set;
        }

        #endregion
    }
}